*,
*:before,
*:after {
    box-sizing: inherit;
}

html {
    box-sizing: border-box;
    font-size: 10px;
}

body {
    padding: 0;
    margin: 0;
    font-family: 'Amatic SC', cursive;
}

h1 {
    text-align: center;
    font-size: 10rem;
    margin-bottom: 0;
    color:rgb(87, 87, 246);
}

.startbutton {
    margin: 20px 5px;
    text-align: center;
}

button{
    font-size: 20px;
    color:blue;
    font-weight: bold;
    background-color:pink;
    border:none;
    outline: none;
    padding:10px 20px;
    border-radius: 10px;
}

.score {
    background: rgba(255, 255, 255, 0.2);
    padding: 0 3rem;
    border-radius: 1rem;
    background-color: pink;
}

.game {
    width: 600px;
    height: 400px;
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
}

.hole {
    flex: 1 0 33.33%;
    overflow: hidden;
    position: relative;
}

.hole:after {
    display: block;
    background: url('./pngtree-cartoon-red-trap-free-illustration-image_2285435.png') bottom center no-repeat;
    background-size: contain;
    content: '';
    width: 100%;
    height: 100px;
    position: absolute;
    z-index: 2;
    bottom: -40px;
}

.mole {
    background: url(./cartoon-cute-mole-260nw-274323440.png) bottom center no-repeat;
    background-size: 60%;
    position: absolute;
    top: 100%;
    width: 100%;
    height: 100%;
    transition: all 0.4s;
}

.hole.up .mole {
    top: 0;
}